package com.fastCms.business.frame.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.fastCms.business.bim.pojo.po.ChangeStatusPO;
import com.fastCms.business.frame.exception.BusinessException;
import com.fastCms.business.frame.pojo.PageParam;
import com.fastCms.business.frame.pojo.entity.News;
import com.fastCms.business.frame.pojo.po.IdStrPO;
import com.fastCms.business.frame.pojo.po.NewsQueryPO;
import com.fastCms.business.frame.pojo.po.NewsSavePO;
import com.fastCms.business.frame.pojo.vo.NewsVO;
import com.github.pagehelper.PageInfo;

/**
 * <p>
 * 新闻资讯 服务类
 * </p>
 *
 * @author quan
 * @since 2024-05-23
 */
public interface NewsService extends IService<News> {
    PageInfo<NewsVO> showPage(PageParam<NewsQueryPO> param);

    public Boolean saveOrUpdate(NewsSavePO param) throws BusinessException;

    public Boolean delete(IdStrPO param) throws BusinessException;

    public Boolean changeStatus(ChangeStatusPO param) throws BusinessException;

}
